<%--
  Created by IntelliJ IDEA.
  User: c
  Date: 2017-11-20
  Time: 17:41
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>采购计划审核</title>
    <%@include file="/WEB-INF/jsp/header.jsp"%>
</head>
<style>
    table td{
        font: 14px 'microsoft yahei', 微软雅黑, Helvetica, Arial, Tahoma, 黑体, 宋体, sans-serif;
    }
</style>
<body>
    <div class="container-fluid">
        <div class="panel panel-info">
            <div class="panel-heading">
                <span class="h3"><i class="layui-icon"></i>搜索</span>
                <a href=".panel-body" class="caret pull-right" data-toggle="collapse"></a>
            </div>
            <div class="panel-body collapse in fade">
                <form id="con" class="pull-left form-inline">
                    <div class="form-group">
                        <div>
                            <label>采购编号：</label>
                            <input class="form-control" type="text" name="planNum" oninput="search()" placeholder="请输入采购编号" value="">
                        </div><br/>
                        <div>
                            <label>供&nbsp;应&nbsp;商&nbsp;：</label>
                            <input class="form-control" type="text" name="proName" oninput="search()" placeholder="请输入供应商名称" value="">
                        </div>
                    </div>
                    <div class="form-group" style="margin-left: 15px;margin-right: 15px;">
                        <div>
                            <label>提交日期：</label>
                            <input class="form-control" type="text" name="subStrartdate" oninput="search()" placeholder="起始提交日期" value="">
                        </div><br/>
                        <div>
                            <label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
                            <input class="form-control" type="text" name="subEnddate" oninput="search()" placeholder="结束提交日期" value="">
                        </div>
                    </div>
                    <div class="form-group" style="margin-right: 40px;">
                        <div>
                            <label>计划采购日期：</label>
                            <input class="form-control" type="text" name="startDate" oninput="search()" placeholder="起始采购日期" value="">
                        </div><br/>
                        <div>
                            <label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
                            <input class="form-control" type="text" name="endDate" oninput="search()" placeholder="结束采购日期" value="">
                        </div>
                    </div>
                    <button type="button" onclick="search()" class="layui-btn layui-btn-small" style="margin-top: 50px;">
                        <i class="layui-icon"></i> 搜索
                    </button>
                </form>
            </div>
            <blockquote class="layui-elem-quote">
                    <button type="button" class="layui-btn layui-btn-normal layui-btn-small" id="add" onclick="addDrug()">
                        <i class="layui-icon">&#xe62a;</i> 批量审核
                    </button>
            </blockquote>
            <table id="auditTable"
                   data-pagination-pre-text="上一页"
                   data-pagination-next-text="下一页"
                   data-click-to-select="true"
                   data-toggle="table"
                   data-url="${ctx}/audit/search"
                   data-striped="true"
                   data-toolbar="#toolbar"
                   data-toolbar-align="right"
                   data-pagination="true"
                   data-side-pagination="server"
                   data-page-size="10"
            >
                <thead>
                    <tr>
                        <th data-checkbox="true"></th>
                        <th data-field="planNum">采购编号</th>
                        <th data-field="provider.proName">供应商</th>
                        <th data-field="planDate">计划采购日期</th>
                        <th data-field="worker.woName">采购员</th>
                        <th data-field="planSubdate">提交日期</th>
                        <th data-field="planChstate" data-formatter="chstate">审核状态</th>
                        <th data-formatter="caozuo" data-events="optEvents">操作</th>
                    </tr>
                </thead>
            </table>
        </div>

    </div>
    <%@include file="/WEB-INF/jsp/footer.jsp"%>
    <script src="${ctx}/res/js/puraudit.js"></script>
</body>
</html>
